package com.ceba.test.modules.regist.entity;

import com.ceba.base.web.entity.IBase;
import com.ceba.cebautils.StringUtil;

public class EnterpriseRegist extends IBase {

	public static String COUNT="3000";
		
	public static String DEFAULT_ACTIVECOUNT="2";
	
	private String id;
	
	private String enterpriseName; 
	
	//首次使用的可用时间
	private String availableDate;
	
	//所有可签名的份数
	private String signCount ;
	
	//最新可用日期
	private String newAvailableDate;
	//最新可用签名份数
	private String newSignCount;
	
	/*已经签名的份数*/
	private String signedCount;
	
	//是否已更新可用日期/最新可用签名份数 0-更新
	private String updateFlag;
	
	//系统试用版还是正式版,1-试用，2-正式
	private String systemType;
	
	//正式版使用日期
	private String formalUseTime;
	
	private String version;
	
	//每次更新时是否收集其签名信息
	private String collectionSqlFlag;
	
	//企业已激活次数
	private String alreadyActiveTimes;
	
	//企业能激活的次数,默认2次
	private String activeTimes;
	
	private String createTime;
	
	//客户收费类型1-签名份数收费  2-维护成本
	private String feeType = "1";
	
	
	public String getNewAvailableDate() {
		return newAvailableDate;
	}

	public void setNewAvailableDate(String newAvailableDate) {
		this.newAvailableDate = newAvailableDate;
	}

	public String getNewSignCount() {
		return newSignCount;
	}

	public void setNewSignCount(String newSignCount) {
		this.newSignCount = newSignCount;
	}

	public String getUpdateFlag() {
		return updateFlag;
	}

	public void setUpdateFlag(String updateFlag) {
		this.updateFlag = updateFlag;
	}

	
	
	public String getSignCount() {
		return signCount;
	}

	public void setSignCount(String signCount) {
		this.signCount = signCount;
	}

	public String getAvailableDate() {
		return availableDate;
	}

	public void setAvailableDate(String availableDate) {
		this.availableDate = availableDate;
	}

	public EnterpriseRegist() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getSignedCount() {
		return signedCount;
	}

	public void setSignedCount(String signedCount) {
		this.signedCount = signedCount;
	}

	public String getSystemType() {
		return systemType;
	}

	public void setSystemType(String systemType) {
		this.systemType = systemType;
	}

	public String getFormalUseTime() {
		return formalUseTime;
	}

	public void setFormalUseTime(String formalUseTime) {
		this.formalUseTime = formalUseTime;
	}

	public String getCollectionSqlFlag() {
		return collectionSqlFlag;
	}

	public void setCollectionSqlFlag(String collectionSqlFlag) {
		this.collectionSqlFlag = collectionSqlFlag;
	}

	public String getAlreadyActiveTimes() {
		return alreadyActiveTimes;
	}

	public int getIntAlreadyActiveTimes(){
		if(StringUtil.isEmptyString(alreadyActiveTimes)){
			return 0;
		}
		return Integer.valueOf(alreadyActiveTimes);
	}
	
	public void setAlreadyActiveTimes(String alreadyActiveTimes) {
		this.alreadyActiveTimes = alreadyActiveTimes;
	}

	public String getActiveTimes() {
		return activeTimes;
	}

	public int getIntActiveTimes(){
		if(StringUtil.isEmptyString(activeTimes)){
			return 0;
		}
		return Integer.valueOf(activeTimes);
	}
	public void setActiveTimes(String activeTimes) {
		this.activeTimes = activeTimes;
	}

	public String getFeeType() {
		return feeType;
	}

	public void setFeeType(String feeType) {
		this.feeType = feeType;
	}


	
}
